﻿@model Metro.Kashikoi.ServiceContract.Storage.BinInventory
@{
    ViewBag.Title = "EditStockItemMap";
}
<h2>
    Edit Stock Item Mapping</h2>
<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>
@using (Html.BeginForm())
{
    @Html.ValidationSummary(true)
    <fieldset>
        <legend>Inventory</legend>
        <div class="editor-label">
            @Html.LabelFor(model => model.Name)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Name)
            @Html.ValidationMessageFor(model => model.Name)
        </div>
        <div class="editor-label">
            @Html.LabelFor(model => model.Quantity)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Quantity)
            @Html.ValidationMessageFor(model => model.Quantity)
        </div>
        <div class="editor-label">
            @Html.LabelFor(model => model.SplitQuantity)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.SplitQuantity)
            @Html.ValidationMessageFor(model => model.SplitQuantity)
        </div>
        <div class="editor-label">
            @Html.LabelFor(model => model.SSID)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.SSID)
            @Html.ValidationMessageFor(model => model.SSID)
        </div>
        <div class="editor-label">
            @Html.LabelFor(model => model.Unit)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Unit)
            @Html.ValidationMessageFor(model => model.Unit)
        </div>
        @Html.HiddenFor(model => model.Id)
        @Html.HiddenFor(model => model.SSID)
        @Html.HiddenFor(model => model.CategoryId)
        @Html.HiddenFor(model => model.ItemId)
        @Html.HiddenFor(model => model.StockAreaId)
        <p>
            <input type="submit" value="Save" />
        </p>
    </fieldset>
}
<div>
    @Html.ActionLink("Back to parent stock area", "StockArea", "Location", new { id = Model.StockAreaId }, null)
</div>
